package com.audaque.springboot.foshanupload.web.datamongodbmodeldemo.model.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.mongodb.morphia.annotations.Entity;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)

@Entity
@Document(collection = "role")
public class Role implements Serializable {
    @Id
    private String id;
    private String name;

}
